package com.zip;


import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class HeaderInterceptor implements Interceptor {


    //  public static final String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJVc2VySWQiOjE4MDU3LCJFbWVVc2VySWQiOjI4MjgxMiwiUm9sZXMiOlszXSwiQ3VyUm9sZSI6MywiVXNlckNOYW1lIjoi6ZmI5ZyGIiwiVXNlckVOYW1lIjoiQW5uIiwiQnJhbmNoSWQiOjQyLCJCcmFuY2hOYW1lIjoi5rex5ZyzQ0JE5Lit5b-DIiwiU2V4IjoxMDMsIkV4cGlyZWRUaW1lIjoiMjAxOS0wNi0yMFQwOTo0NzozNC4wMzY1NDQ4KzA4OjAwIiwiQXZhdGFyVXJsIjoiaHR0cDovL3RoaXJkd3gucWxvZ28uY24vbW1vcGVuL1BpYWp4U3FCUmFFS0FGRjdHdWtveVJRSXFyVWljTlJPS1l3RFU5NTY0c2ZjV3Fwek13N0tJV1Y2aWNuUERpY3hOdGdHUTdna1c1Wmljd2dxa3RGOEZEaWNPaWNIdy8xMzIiLCJEYXRhQ2VudGVySWQiOjgsIlBob25lIjoiMTU4MTg1NDIxOTIiLCJJc1ZpcFRlc3RBY2NvdW50IjpmYWxzZSwiSXNWaXJ0dWFsQWNjb3VudCI6ZmFsc2UsIlJlYWxNb2JpbGUiOiIxNTgxODU0MjE5MiIsIlJlYWxFbWVVc2VySWQiOjI4MjgxMiwiQWNjb3VudFR5cGUiOjEwMSwiRW1lUHJvZHVjdHMiOlt7IlByb2R1Y3RJZCI6MzIsIlByb2R1Y3RDTmFtZSI6IkV4cGxvcmUiLCJQcm9kdWN0U0NvZGUiOiJFeHBsb3JlIn1dLCJDdXJQcm9kdWN0SWQiOjMyLCJSZWFsQXBwVXNlcklkIjoxODA1NywiSXNWaXAiOmZhbHNlLCJDdXJQcm9kdWN0TGV2ZWxJZCI6MTY1LCJDdXJQcm9kdWN0TGV2ZWxOYW1lIjoiRU0xIn0.Bhr39LNxzwvh6NgmSquoF0ik-g2JwWPdD-WdpIZWscw";
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request original = chain.request();
        Request request = original.newBuilder()
                .header("authorization", "")
                .build();
        return chain.proceed(request);
    }
}